

var NwBuilder = require('nw-builder'); 
var path = require('path');
var basePath = path.join(__dirname, './app');
var UserFile=__dirname;
			
var option = {
	appVersion : "1.0.0.0",
	version : "1.0.0.0",
	buildDir : UserFile + '/cache_file/build',
	cacheDir : UserFile + '/cache_file',
	appName : "VR Player",
	flavor : 'normal',
	files : basePath + '/**/**/**/**', // 包含文件
	"platforms" : ["osx64","win64"], // 打包的平台
	"version" : '0.37.0',
	"nwjsBuilder" : {
		"productName" : "VR Player",
		"productVersion" : "1.0.0.0",
		"fileDescription" : "VR Player"
	},winIco: path.join(__dirname, "./config/app.ico"),
	macIcns:path.join(__dirname, "./config/app.icns")
}; 
  
			 
			var nw = new NwBuilder(option);
			nw.on('log', console.log);
			nw.build().then(function() {
				console.log('done!');
				//callback();
			}).catch(function(err) {
				console.log(err);
				//callback();
			});
 
